
    <!--  /Loading Container -->
    <!-- Navbar -->
    {include file="public/_head"}
    <!-- /Navbar -->
    <!-- Main Container -->
    <div class="main-container container-fluid">
    <div class="page-container">
        <!-- Page Container -->
        {include file="public/_left"}
            <!-- /Page Sidebar -->
            <!-- Page Content -->
            <div class="page-content">
                <!-- Page Breadcrumb -->
                <div class="page-breadcrumbs">
                    <ul class="breadcrumb">
                        <li class="active">
                            <i class="fa fa-home"></i>&nbsp;网站管理
                        </li>
                        <
                    </ul>
                </div>
                <!-- /Page Breadcrumb -->
                <!-- Page Body -->
                <div class="page-body">
                	<div class="row">
                		<div class="col-xs-12">
                			<div class="widget radius-bordered">
                				<div class="widget-header bordered-bottom bordered-themeprimary">
                					
                				</div>
                				<div class="widget-body">
                                    <form class="form-horizontal">
                                    <input type="hidden" name="id" value="{$webInfo.id}">
                                        <div class="form-group">
                                            <label for="webname" class="col-sm-2 control-label no-padding-right">网站名称</label>
                                            <div class="col-sm-6">
                                                <input type="text" class="form-control" name="webname" id="catename" placeholder="请输入网站名称" value="{$webInfo.webname}" />
                                                
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="copyright" class="col-sm-2 control-label no-padding-right">版权信息</label>
                                            <div class="col-sm-6">
                                                <input type="text" class="form-control" name="copyright" id="copyright" placeholder="请输入版权信息" value="{$webInfo.copyright}" />
                                                
                                            </div>
                                        </div>

                                        
                                        <div class="form-group">
                                            <div class="col-sm-offset-2 col-sm-10">
                                                <button type="submit" id="webedit" class="btn btn-primary">修改</button>
                                            </div>
                                        </div>
                                    </form>
                				</div>
                			</div>
                		</div>
                	</div>
                </div>
                <!-- /Page Body -->
            </div>
            <!-- /Page Content -->

        </div>
        <!-- /Page Container -->
        <!-- Main Container -->

    </div>
{include file="public/_js"}
<script type="text/javascript">
$(function(){
    $('#webedit').click(function(){
        $.ajax({
            url:"{:url('admin/system/edit')}",
            type:'post',
            data:$('form').serialize(),
            dataType:'json',
            success:function(data){

                //console.log(data);
                if(data.code==1){
                 layer.msg(data.msg,{
                     icon:6,
                     time:2000
                 },function(){
                     location.href=data.url;
                 });
                }else{
                 layer.open({
                     title:"添加失败",
                     content:data.msg,
                     icon:5,
                     anim:6
                 });
                }
            }
        });
        return false;
    });
});
</script>
</body>
<!--  /Body -->
</html>
